<template>
  <div>
    <!-- <songline :col="index" :music="item"  v-for="(item,index) of singles" :key="index" :index="index"></songline> -->
  </div>
</template>

<script>
import { url } from "@/apiUrl"//引入地址
import songline from '@/components/drawer/songline.vue'
export default {
    components:{
        songline,
    },
    data(){
        return{
            singles:[]
        }
    },
    // mounted(){
    //     this.$axios.get(`${url}/musics/getMusicBySinger?singer_id=${this.$route.query.singer.singer_id}`)
    //   .then(res => {
    //    var data=res.data.data
    //    for (var i in data) {
    //     this.singles[i] = {
    //       title: data[i].music_name,
    //       author: data[i].singer_name,
    //       url: `${url}/${data[i].audio_url}`,
    //       pic: `${url}/${data[i].img_url}`,
    //       lrc: data[i].lyric,
    //       album: data[i].album_name
    //     }
    //   }
    //   console.log(data);
    //   console.log(this.singles);
    //   })
    // }
}
</script>

<style>

</style>